Optimal. Leaf size=36 \[ \frac {1}{2 a b (a-b x)}+\frac {\tanh ^{-1}\left (\frac {b x}{a}\right )}{2 a^2 b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 36, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.150, Rules used = {641, 46, 214}
\begin {gather*} \frac {\tanh ^{-1}\left (\frac {b x}{a}\right )}{2 a^2 b}+\frac {1}{2 a b (a-b x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 46
Rule 214
Rule 641
Rubi steps
\begin {align*} \int \frac {a+b x}{\left (a^2-b^2 x^2\right )^2} \, dx &=\int \frac {1}{(a-b x)^2 (a+b x)} \, dx\\ &=\int \left (\frac {1}{2 a (a-b x)^2}+\frac {1}{2 a \left (a^2-b^2 x^2\right )}\right ) \, dx\\ &=\frac {1}{2 a b (a-b x)}+\frac {\int \frac {1}{a^2-b^2 x^2} \, dx}{2 a}\\ &=\frac {1}{2 a b (a-b x)}+\frac {\tanh ^{-1}\left (\frac {b x}{a}\right )}{2 a^2 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 50, normalized size = 1.39 \begin {gather*} \frac {2 a+(-a+b x) \log (a-b x)+(a-b x) \log (a+b x)}{4 a^2 b (a-b x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.41, size = 47, normalized size = 1.31
method | result | size |
default | \(\frac {\ln \left (b x +a \right )}{4 a^{2} b}-\frac {\ln \left (-b x +a \right )}{4 a^{2} b}+\frac {1}{2 a b \left (-b x +a \right )}\) | \(47\) |
risch | \(\frac {\ln \left (b x +a \right )}{4 a^{2} b}-\frac {\ln \left (-b x +a \right )}{4 a^{2} b}+\frac {1}{2 a b \left (-b x +a \right )}\) | \(47\) |
norman | \(\frac {\frac {x}{2 a}+\frac {1}{2 b}}{-b^{2} x^{2}+a^{2}}-\frac {\ln \left (-b x +a \right )}{4 a^{2} b}+\frac {\ln \left (b x +a \right )}{4 a^{2} b}\) | \(58\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 48, normalized size = 1.33 \begin {gather*} -\frac {1}{2 \, {\left (a b^{2} x - a^{2} b\right )}} + \frac {\log \left (b x + a\right )}{4 \, a^{2} b} - \frac {\log \left (b x - a\right )}{4 \, a^{2} b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.45, size = 54, normalized size = 1.50 \begin {gather*} \frac {{\left (b x - a\right )} \log \left (b x + a\right ) - {\left (b x - a\right )} \log \left (b x - a\right ) - 2 \, a}{4 \, {\left (a^{2} b^{2} x - a^{3} b\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.10, size = 37, normalized size = 1.03 \begin {gather*} - \frac {1}{- 2 a^{2} b + 2 a b^{2} x} + \frac {- \frac {\log {\left (- \frac {a}{b} + x \right )}}{4} + \frac {\log {\left (\frac {a}{b} + x \right )}}{4}}{a^{2} b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.78, size = 50, normalized size = 1.39 \begin {gather*} \frac {\log \left ({\left | b x + a \right |}\right )}{4 \, a^{2} b} - \frac {\log \left ({\left | b x - a \right |}\right )}{4 \, a^{2} b} - \frac {1}{2 \, {\left (b x - a\right )} a b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.05, size = 32, normalized size = 0.89 \begin {gather*} \frac {1}{2\,a\,b\,\left (a-b\,x\right )}+\frac {\mathrm {atanh}\left (\frac {b\,x}{a}\right )}{2\,a^2\,b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________